package cn.pro.service.impl;

import cn.pro.dao.ProductDao;
import cn.pro.dao.impl.ProductDaoImpl;
import cn.pro.domain.Product;
import cn.pro.service.ProductService;

import java.util.List;

public class ProductServceImpl implements ProductService {
    private ProductDao productDao = new ProductDaoImpl();
    public void save(List<Product> productlist) {
        for (Product product : productlist) {
            productDao.save(product);
        }
    }

    public List<Product> findAll() {

        return productDao.findAll();
    }
}
